﻿@model ICDA.Web.Models.UserModel
@{
    ViewBag.Title = "EditUser";
}
<div class="tabscontainer">
    <div class="tabs">
        <div class="tabs">
            <div class="tab first" id="tab_menu_1">
                <div class="link">@Html.ActionLink("Users", "UserAccount", "Admin")</div>
                <div class="arrow">
                </div>
            </div>
            <div class="tab selected" id="tab_menu_2">
                <div class="link">@Html.ActionLink("Modify User", "EditUser", "Admin")</div>
                <div class="arrow">
                </div>
            </div>
            <div class="tab  last" id="tab_menu_3">
                <div class="link">@Html.ActionLink("Add User", "AddUser", "Admin")</div>
                <div class="arrow">
                </div>
            </div>
        </div>
    </div>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "User updation was unsuccessful. Please correct the errors and try again.")
  
    <div class="curvedContainer">
            <div class="tabcontent" id="tab_content_2" style="display: block">
           <div class="formcontainer">
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.Name)
                </div>
                <div class="formfield">
                    @Html.TextBoxFor(m => m.Name)
                    </div>
                    <div class="messageRow">
                    @Html.ValidationMessageFor(m => m.Name)
                    </div>
            </div>
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.EmailID)
                </div>
                <div class="formfield">
                    @Html.TextBoxFor(m => m.EmailID)
                </div>
                    <div class="messageRow">
                    @Html.ValidationMessageFor(m => m.EmailID)
                    </div>
            </div>
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.TeamName)
                </div>
                <div class="formfield">
                    @Html.TextBoxFor(m => m.TeamName)
                </div>
                    <div class="messageRow">
                    @Html.ValidationMessageFor(m => m.TeamName)
                    </div>
            </div>
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.Status)
                </div>
                <div class="formfield">
                    @Html.RadioButtonFor(model => model.Status, true) Active
                    @Html.RadioButtonFor(model => model.Status, false) InActive
                </div>
                 <div class="messageRow">
                    @Html.ValidationMessageFor(m => m.Status)
                    </div>
            </div>
            <div class="formEditButton">
                <input type="submit" value="Update User" class="button orange medium" />
            </div>
        </div>
        </div>
    </div>
}
</div>